package org.jeecg.modules.sun.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 用户表
 * @Author: jeecg-boot
 * @Date:   2021-05-23
 * @Version: V1.0
 */
@Data
@TableName("sun_user")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sun_user对象", description="用户表")
public class SunUser implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号-主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号-主键")
    private String id;
	/**createBy*/
    @ApiModelProperty(value = "createBy")
    private String createBy;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
    private String updateBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;
	/**isDelete*/
	@Excel(name = "isDelete", width = 15)
    @ApiModelProperty(value = "isDelete")
    private Integer isDelete;
	/**昵称*/
	@Excel(name = "昵称", width = 15)
    @ApiModelProperty(value = "昵称")
    private String userName;
	/**用户密码*/
	@Excel(name = "用户密码", width = 15)
    @ApiModelProperty(value = "用户密码")
    private String userPwd;
	/**电话号码*/
	@Excel(name = "电话号码", width = 15)
    @ApiModelProperty(value = "电话号码")
    private String userPhone;
	/**状态，1-正常,2-冻结*/
	@Excel(name = "状态，1-正常,2-冻结", width = 15)
    @ApiModelProperty(value = "状态，1-正常,2-冻结")
    private Integer status;
	/**孩子真实姓名*/
	@Excel(name = "孩子真实姓名", width = 15)
    @ApiModelProperty(value = "孩子真实姓名")
    private String childName;
	/**孩子学号*/
	@Excel(name = "孩子学号", width = 15)
    @ApiModelProperty(value = "孩子学号")
    private String childId;
	/**邮箱*/
	@Excel(name = "邮箱", width = 15)
    @ApiModelProperty(value = "邮箱")
    private String userEmail;
	/**性别，1-男,2-女*/
	@Excel(name = "性别，1-男,2-女", width = 15)
    @ApiModelProperty(value = "性别，1-男,2-女")
    private Integer sex;

	@TableField(exist = false)
    private String oldPwd;
}
